package demo.isolib {

	import demo.isolib.Tile;
	import com.sshc625.log.Logger;
	
	import eDpLib.events.ProxyEvent;
	
	public class Avatar extends Tile {
		
		
		
		public function Avatar(colSpan:Number = 1, rowSpan:Number = 1, height:Number = 0, movable:Boolean = false) {
			super(colSpan, rowSpan, height, movable);

			this.dragable = false;
			this.selectable = false;
			this.selected = false;
		}
		override protected function onMouseDown(e:ProxyEvent):void {
			Logger.log("Avatar.onMouseDown");
			super.movable = false;
			super.onMouseDown(e);
		}
		override protected function onMouseClick(e:ProxyEvent):void {
			Logger.log("Avatar.onMouseClick");
			super.onMouseClick(e);
			super.movable = true;
		}
		
	}
}